package com.stockz.ui.swing.charting.painter.scheme.color;

import java.awt.Color;
import java.util.List;

import com.stockz.core.model.Bar;

public class BasicBarColorScheme implements BarColorScheme {

	/*private int low = 55;
	private int high = 0xff;*/
	private int span = 20;
	
	//for performance
	List<Bar> barList;
	double[] avgVolume;
	double[] avgSpread;
	double[] avgPrice;
	
	
	
	/**
	 * 1. Spread
	 * 2. Percentage change
	 * 3. Deviation
	 * 4. Position of Close
	 * 5. Volume
	 */
	
	
	@Override
	public Color apply(List<Bar> barList, int index) {
		if(index < 0 || barList == null || barList.size() < index+span) return Color.white;
		
		
		
		return null;
	}

	
	public void setBarList(List<Bar> barList){
		this.barList = barList;
	}
	
	
	public void refreshState(){
		
	}
	
	
}
